changed storing frames as a map to an array list. Added a map to cross reference frame number to array index