fixing the move boat function in your script