Loop created - legal moves is wrong