Which of the following is grammatically correct?
A. I was doing homework. Instead of watching the game.
B. Instead of watching the baseball game, I was doing homework.