implemented structure for game play