added tilemanager function

added tilemanager function to gameplayStaeMachine.

Then adjusted units to correct tile units