added width and height of playground to globals and added import
 added function that converts a path (list of RobotStates) to a list of tuples