workable gui and logic of game