game tracks flags and revealed spots
refactored to clean up code