Adding basic AI and line clearing to Tetris