rfactor out methods from game