Found FEN for which the program generates wrong # of moves.
Introduced perft and fixed a few bugs.