added basic functionality to the handleTCP funtion. This will set rules - still need to loop through every switch