play logic