//updates the data that the something has moved to a new position
    private static void UpdateGrid <T>(int xpos1, int zpos1, int xpos2, int zpos2, T thing)
    {
        T temp = thing;

        _objectsGrid[xpos1, zpos1] = null;
        _objectsGrid[xpos2, zpos2] = temp;

        _worldRef.Update3DArea(xpos1, zpos1, xpos2, zpos2);
    }