bug fixes and written basic takestep and basic actions