Added 3 way handshake for beginning (resends SYN if no ACK received)