This works, there is no diff.
Can find loops, though needs way to cache found loops and see if current locations are on them.
Now can store loops in data structure, need to test more though.
Now can store loops in data structure, need to test more though.
Works for input.txt but segfaults on input2.txt
Not segfaulting, but need to handle wrap around next (missed that in description the first time)
New challengs
Drawing a blank map
Have items and player drawn, next do movement
Basically done, could add enemies that move towards you, diagonal movement, and tracking to see if all items are collected.