Implementation of alpha-beta search. Still needs testing