Which sentence is grammatically correct?

A) I was at the movies when halfway through the power went out.

B) I was at the movies, when halfway through, the power went out.

C) I was at the movies when halfway through, the power went out.

Vote below to see results!