Fixed the menus to start from 1 instead of 0
Added fromIndex to findSquare to support merge requirements
Changed switch case options to readable consts