Split programs into separate files and clear the screen after each frame