got the main phase of the game working.