Updated ServerThread.java to verify headerpackets for each relevant stage