psuedo code for reference on character select