added a boolean valuable for the Player class which is used to terminate the run method which in turn stops the threads.