Unity not responding

When i run this script in unity it stops responding i am guessing there is a looping error somewhere in here but i couldn’t find it, is there any problem with this?

(i have an if statement up here)

else {

		if (gx < fix) {  
			if (gy < fiy) {
				space = 0;
				while (gy < fiy) {
					gy =+ 1;
					space =+ 1;
					if (space > ms) {
						return false;
					}
				}
				if (space > ms) {
					return false;
				}
				while (gx < fix) {
					gx =+ 1;
					space =+ 1;
					if (space > ms) {
						return false;
					}
				}
				if (space > ms) {
					return false;
				}
				return true;
			} else {
				space = 0;
				while (gy > fiy) {
					gy =- 1;
					space =+ 1;
					if (space > ms) {
						return false;
					}
				}
				if (space > ms) {
					return false;
				}
				while (gx < fix) {
					gx =+ 1;
					space =+ 1;
					if (space > ms) {
						return false;
					}
				}
				if (space > ms) {
					return false;
				}
				return true;
			}
		} else {
			if (gy < fiy) {
				space = 0;
				while (gy < fiy) {
					gy =+ 1;
					space =+ 1;
					if (space > ms) {
						return false;
					}
				}
				if (space > ms) {
					return false;
				}
				while (gx > fix) {
					gx =- 1;
					space =+ 1;
					if (space > ms) {
						return false;
					}
				}
				if (space > ms) {
					return false;
				}
				return true;
			} else {
				space = 0;
				while (gy > fiy) {
					gy =- 1;
					space =+ 1;
					if (space > ms) {
						return false;
					}
				}
				if (space > ms) {
					return false;
				}
				while (gx > fix) {
					gx =- 1;
					space =+ 1;
					if (space > ms) {
						return false;
					}
				}
				if (space > ms) {
					return false;
				}
				return true;
			}

		}
	}

gy =+ 1;

should be

gy += 1;
or
gy++;

Same mistake several times.