added flat changes
added transition effects to the clicked boxes
added color tranistion
cleaned up html and put code into separate files