Fixed problem in isValidMove for kings.