Move some functions to gameState.js