fixed up GUI and implemented basic player state