added arc calculation
created custom array PositionArray for storing positions with validation
fixed reverse flower