implemented move straight function