Refactored tetris.core using goog.events and goog.date.