Update Stockfish to version 5 and fix variants handling.