latest()->first(); if (!$currentGame) { return response()->json(['error' => 'No active game session'], 404); } $currentState = CurrentState::where('game_session_id', $currentGame->id)->with('color')->get(); return response()->json($currentState); } }