updating last_action
update last_action (for realz)
mostly finished search implementation