Fixing subtle logic bugs relating to the play / pause button