public RaisedObject getObject(int x, int y) {

        if (x < 0 || y < 0 || x >= width || y >= height) {
            return RaisedObject.voidObject;
        }

        int spot = objects[x + y * width];

        RaisedObject r = RaisedObject.getRaisedObjectFromNumber(spot);

        if (r != null) {
            return r;
        } else {
            return RaisedObject.voidObject;
        }
    }