Updated alphabeta to include gravity (by Bryson)