algoritm stop after about 5 moves need to ckeck this out, fixed
huristicks and added some functions to minimax