So am making a minecraft ripoff, tile based game and i wanted to make nether portal detection algorithm (so i don\'t have to write it manually and it\'s faster) whereas i de