Moving Rectangle using element buffer