Fixed bug with converting string to TCPMessage object

Improves #20

When recieving a lot of infomation, sometimes the stringstream became
null. This because the stringstream object was created in a broader
scop. Fixed by moving the stringstream to an inner scope. Ball hitting a
tile should now always be registered on both sides.