It would be best to play with your cat before bedtime, but not in the bedroom. Play with the cat for 15-20 minutes before going to bed. Playtime is exercise time and triggers mental stimulation that can tire the cat somewhat. You can use a toy that mimics chasing prey.