added funcionality to pass state and input to player for client side prediction