API

Created sockets based api for game