Changed visualization from terminal to JFrame