adds basic ai
fixes diagonal attack bug