public boolean isValid(int x, int y)
    {
        if(roomObjects == null)
            return false;
            
        if(y < 0 || x < 0)
            return false;
        
        if(y >= roomObjects.length)
            return false;
        
        if(roomObjects[y] == null)
            return false;
        
        if(x >= roomObjects[y].length)
            return false;
        
        if(roomObjects[y][x] == null)
            return false;
        
        if(roomObjects[y][x] instanceof Integer)
        {
            Integer obj = (Integer)(roomObjects[y][x]);
            if(obj.intValue() == RoomItems.WALL.ordinal())
                return false;
        }
        
        return true;
    }