Implemented end stage (alpha-beta)