Fixed animation when castling, moving into a green square, and game ending