Add error handler for invalidMove.