action.js functionally done conerning eat and idle
Merged changes.