public Counter winningMove(Move lastMove, Board b) {
		boolean end = false;
		int x = Board.MINWIDTH;
		int y = b.getHeight();
		Counter winner = Counter.EMPTY;
		
		while((y >= Board.MINHEIGHT) && !end) {
			while ((x <= b.getWidth() && !end)) {
				//Check up
				end = Util.checkCellInDirection(b, x, y, DirectionX.NOTHING, DirectionY.UP);
				//Check right
				if (!end) end = Util.checkCellInDirection(b, x, y, DirectionX.RIGHT, DirectionY.NOTHING);
				//Check up-left diagonal
				if (!end) end = Util.checkCellInDirection(b, x, y, DirectionX.LEFT, DirectionY.UP);
				//Check up-right diagonal
				if (!end) end = Util.checkCellInDirection(b, x, y, DirectionX.RIGHT, DirectionY.UP);
				//Increase x counter
				if(!end) x++;
			}
			if (end) {
				winner = b.getPosition(x, y);
			}
			x = Board.MINWIDTH;
			y--;
		}
		return winner;
	}