implemented bounce physics