Also line 246 should have have '==' and not '=' in the if statement.