updated code

have character move code, but a strange bug with iterators