added ascii for loops and finished most button functionality