Added stalemate test. Finished threefold repetition, fifty move rule and insufficient material implementation. These are not yet tested. #3