Bug fixes

Fixed a couple of bugs that made it impossible for player to make
capture, and that made it possible for pawn to move two squares if
friendly pawn is threatening the same square.