added function getEnum to gameState