implemented up to step 3 of the game