This is my code : Source Code
I want to make the object move up and down as the user swipes up or down. But the up function is not working