public static void getNeighbors(Grid grid, int cellID){
        Entity currentCell = grid.getEntity(cellID);
        currentCell.setLiveNeighbor(0);

        int currentTargetID = 0;
        for(int x = 0; x < 3; x++) {
            for(int y = 0; y < 3; y++) {
                currentTargetID = getTargetOffset(x, y, grid.getRows()) + cellID;
                if(currentTargetID >= 0 && currentTargetID < grid.getGridSize()) {
                    if(grid.getEntity(cellID + getTargetOffset(x, y, grid.getRows())).getState() == EntityStates.ALIVE) {
                        currentCell.setLiveNeighbor(currentCell.getLiveNeighbor() + 1);
                    }
                }
            }
        }
    }