Changed the removeItem() algorithm s.t. the item removed is the one the cursor is pointing at. Compiles and runs successfully.