Clean room tetris implementation in ruby