Imported some of main game for testing.