Oops, invalid coffeescript
Move head along edges