added code to eject from minecart