manipulate game state from lua