connection to socket and game movement implemented