Tetris implementation in Python/Pygame for a friend .