Moved playerReady function