Add game directive and fix the game bug