updating right movement