added temporary variables to handle overwrite

basically added the object to restore previous object which ship is
going to override when step on the map