Fixed a bug with bad inputs

The bug allowed players to enter negative numbers at shops resulting in
hilarious consequences.