protected int getStateFromNeighbours(int currentState, int[] neighbours)
	{
		int total = 0;
		for (int neighbour : neighbours)
		{
			total += neighbour;
		}
						
		int next = 0;
		if (currentState == 0 && total == 3)
		{
			next = 1;			
		}
		else if (currentState == 1 && total < 2)
		{
			next = 0;
		}
		else if (currentState == 1 && total > 3)
		{
			next = 0;
		}
		else
		{
			next = currentState;
		}		
		
		return next;
	}