Implement the minecart movement.