Think in Games: Learning to Reason in Games via Reinforcement Learning with Large Language Models