Apply error monad to update-game