added eat and attack function
merge fix