added ui and gamelogic structure