Fixed some minor bugs, added negalphabeta. Fixed Makefile. adapted main.