Separated game code from solver