moving game running outside of the main class to allow for easier testing