Refactored piece generation & rotation logic.