Added functionality for all 32 lines

THIS IS THE BEST CODE SO FAR