Fixed minor issues, decision making seems much better. Still might not always win, but it has won every time with the modified code. Added comments.