Create Keegans code

I had to cheat a little from Getch's code but still not working quite right. Almost got it myself.