finalized end game window function and styling