COMP1040
Australia
University of South Australia
The supplied code, when run, simulates a game of Javopoly™. However the game is very boring: all of the squares on the Javopoly board are empty so nothing happens when a player lands on any of them. Your task is to make the simulation a little bit more interesting by implementing the following: 1. Implement a class hierarchy for all the types of squares on the board.2. Implement a class hierarchy for the various types of LuckyCards which are used when a player lands on a PotLuck square.3. Fill in the methods of the OutputPlayers, which write information about Players in the game to a text ?le.4. Create an Exception class and modify the GameBoard class to throw this Exception when too many squares of any type are added to the boa