Added an isSuicide function and used it to disallow suicide moves.