fixed ugly bug and prepared for the human player :-)