Implements expand for expanding all neighbors from a current state