Use movement direction from socket.io