update logic gameplay