Changed the bounce function slightly. - didn't test it out yet.