fixed test
added pages for game endings
refactored redirection to a function
game now handles end of game with static win/lose/tie pages