Fixed two bugs.
Added the tests for game_rewardsPlayer().