Removed unused variables in gameLoop