refactoring car and game classes