added getInfo function and restructured code and added comments (playing with computer not functional)