Displays numbers array in writeBallsToCanvas method, dislays undefined though