a tetris game logic written in golang