public Tile getTile(double x, double y){
        int tileX = (int)x;
        int tileY = (int)y;

        if(tileX < 0 || tileX >= width || tileY < 0 || tileY >= height){
            return null;
        }

        return tile[tileX][tileY];
    }