My first attempt at a chess engine