changes made to GamePlay class to allow functioning game