Rename function; change a true to false
Rename canMove to cantMove because it returns true when the opponent
cannot move rather than when the opponent can move.
Make it return false when there is a piece which is not a king or  a
pawn because of this.