added more actions
better error handling when running out of actions