fixed behaviour bug, added attack behaviour