public static int check4(int w, int h, int s)
	{
		int x = w;
		int y = h;
		int color = gameBoard[h][w];
		int slope = s;
		int numInRow;
		if(color==0)
			numInRow=0;
		else
			numInRow=1;
		for(int i=0;i<3;i++)
		{
			if(slope!=100)
			{
				x+=1;
				y-=slope;
			} else
				y-=1;

			if((gameBoard[y][x]==color)&&(color!=0))
				numInRow++;
			else if((gameBoard[y][x]!=color)&&(color==0)) {
				color = gameBoard[y][x];
				if(gameBoard[y][x]==2)
					numInRow += 10;
				numInRow++;
			}
			else if(gameBoard[y][x]!=0) {
				numInRow = 0;
				break;
			}
		}
		return numInRow;
	}