I have an assignment to create a game using JFrame which is a board and you have figures you can move around using MouseListener. I have an Object array where all the figure