No more  impossible moves

Added code to prevent it trying moves that don't do anything