Skeleton for the client. Communication and some basic logic is implemented. IS NOT TESTED