Ben - refactor gameover function into game object, trying to fix unit test