Added: locking function (need to be tested with multiple players)