Added function to complete items

Created new function to mark items as completed/not completed as well as
adding code to updateCount to properly update the number of items left
depending on whether or not the items are completed