Design modified
State machin added for positions
Renamed position table