implemented basic minimax
merged