Fixed perft errors. Now runs (with wrong results)