Created TCPSocket class, 
collisions now generete events, 
+ done some refactoring