worked on gui, needs game end state