adding objects to represent game state in js