Implemented a function for moving the T-frog