Converted Board class to JFrame class