Fixed selection and deselection. Implemented selection and deslection into play.cpp.