made velocity intpo speed so I can increase speed more easily
fixed typos for copysign
made swithcing velocity direction a function
introduced max speed
fixed typo in max speed to make it max rather than min speed
has max speed, bounces correctly in what appears to be all cases. needs to have collisions with walls