return (posX + Constants.CONNECTOR_WIDTH / 2) - (posX + Constants.CONNECTOR_WIDTH / 2) % Constants.GRID_SIZE - Constants.CONNECTOR_WIDTH / 2;  return posX;
return posX - posX % Constants.GRID_SIZE; else return posX;
public int getX(){	int posX = super.getX();	if(Settings.getInstance().getSnapToGrid())		return (posX + Constants.CONNECTOR_WIDTH / 2) - (posX + Constants.CONNECTOR_WIDTH / 2)			% Constants.GRID_SIZE - Constants.CONNECTOR_WIDTH / 2;			return posX;}