added custom game logic. improvements on complex core