fixed cart pole reward function and added infinite track mode