Added a variable I had forgotten. It is now possible to do a complete playthrough and the buttons on the top are usable again.