loop peacekeeping

cleaned up sloppy for loops, works in firefox now, minus animations of
course