created integer array to track game state