First working version with stockfish