function [Movement, PickUp, PutDown]= MoveRobot(Position,Empty,Room)
    
    Movement = zeros(1, 2);
    PickUp = zeros(1, 2);
    PutDown = zeros(1, 2);

    Neighborhood = Room(Position(1)-sign(Position(1)-1):Position(1)-sign(Position(1)-size(Room,1)), ...
                            Position(2)-sign(Position(2)-1):Position(2)-sign(Position(2)-size(Room,1)));
                        
    RelativePosition = [2-sign(Position(1)-1), 2-sign(Position(2)-1)];
    
    Neighborhood(RelativePosition) = 0;
    
    if Empty == 1 & sum(Neighborhood) > 0
        PutDown = Position;
    elseif Empty == 1 & sum(Neighborhood) > 0
        [PickUp(1), PickUp(2)] = (find(Neighborhood, 1) - RelativePosition)
    end
    
    Movement = sign(floor(rand(1,2)*3)-RelativePosition);
    
end
