added side length input and start point input