fixed segfault, made sure to deselect when switching players
Merge branch 'working'