Add bishop move check and minor fixes

The function isValidMove now also supports bishops.
error_reporting(E_ALL) moved to test.php.