Extract common engine stuff to Game class.