Switched .equals with Array.equals and did some other stuff