Changed Function signature setPlayerReady to synchronized (threadsafe)