playerDelay=20s and cleaned up player code