added assignment 3; partly done; added gravity, bouncing, and friction when it's rolling on the ground