added check for two edges taken check and some specs for the ai move function