Moved the test game loop into it's own file