added player locking to textwindow