Hide before game starts and when spectating

Here is a simpler way to do the hiding of the UI when spectating. It will also hide the UI before the game has started.