Moved gameLoop from TCPServer constructor to gameLoop() function