Few optimisations here and there, especially on the board logic

I think I will give up and implement minmax Algorithm…