cleaned up pin numbering, refactored clear_screen