translatePolygon added in the main

The function has now been added and can be used in the main