added checking for player turn and some bad ui and an end game button