An attempt at a chess AI in java