Refactor alphabeta with template