Refactored the code, made a startGame function, moved stuff around.