Removed unused variable
Fixed bug: x & y were being overridden with temps

I </3 MATLAB