major changes to grammar, wrote function for testing all sentences