Partial reimplementation of player editing. Edits can't be saved yet though.