modifed createUnit to date a path(int) as its last parameter
added path to createUnit
added path to createUnit()