perft works perfectly (but slow)