Your community is a bunch of stuck up turds.
The bounce function is a bad way to do what you're wanting to do, just make a routine to do it.
x+=walkspeed-currentfriction