Started to fix the port checking part of the program so it works like one would think