Add functions to detect wall reflection and make changes to velocity