Fix Assignment3.cpp

Fix a couple of code-breaking bugs. Working to fix
getAssignmentStatements for the bonus