It appears my implementation of the polish notation solver function has a bug. I need to investigate why that is.