combain ui and game