added a little indentation and a startGame function