removed redundant ternary operators from get_playmode