Added input checking and word matching, turn class

Now can compare phrases with the current turn's command.

Also introduced Turn class.
Add docstrings to object methods