Implemented the input part of logic.
Implemented the input part of logic.

sanyaade-g2g-repos/guichan,mettli/guichan,mettli/guichan,sanyaade-g2g-repos/guichan,littleflylongbow/guichan,littleflylongbow/guichan