Legal move detection