Switched ArrayList to Scala ArrayBuffer