Fixed User Interface code. Added decision making functionality to
setMouseAction method, so methods are still called.