Modifid function and variable name.
Deleted unused function.
Fixed bug about deleting discarded tile.