working on implementing position unit enter and exit now conaints pos. next step is database management