Bug Fix for Tester.java

I found another bug, which turned out to be causing difficulties. I also fixed the code from before so that the y-axis works properly.