added playscreen functionality