Moving input logics from main to serverclient

Client request for a new position of the character still needs to be
worked on.