implemented ai functions to check for king escape and calculate free movement spaces as a score for determining the next move, ai can now play and will prioritize winning and capturing pieces, but only predicts one move into the future