Added addWindowListener for window closing event. So the program can be
terminiated everytime when clicked the cross.
Updated genAvailableTime()
Merge pull request #4 from Brianified/master

changed the panels
Correct the genAvailableTime().
added models and fixed the room and time panel so they can pass data to
one another