functions for moving and turning added