There is basically one simple rule: player A needs to hit with his bat and the ball needs to land on the opponents side of the table. From then on it's the responsibility of player B to return with his bat. It's never player A's fault once the ball correctly hit the opponents side. Player B has to make sure he can reach the ball.