debugged and mostly finished the game player