Added menu to gameEngine

Added menu to gameEngine, fixed bugs in sample,