float x = gridX*spacing+10;
float y = gridY*spacing+10;
//TODO remove these weird coordinate adjustions.
squareParent.addComponent(new PositionComponent(x,y));
squareParent.addComponent(new SquareComponent(grid.getSquare(gridX, gridY)));
return squareParent;
}