fixed bug that would occur when all corners or all edges were taken and it was the cpus turn. wrote regression test as well.