Fix stat modification bugs

Fix bug where stat boosts would increase every time the player
exited the inventory screen. Also fix bug where stat bonuses
would not be applied unless player exited inventory screen.