figured out writing from inside game - can escape IO, write in updateGame with unsafePerformIO