got rule 1 of the game working. progress on rule 2.