The delete key now allows the deletion of the selected chair or the selected table if it has no chairs.
Also fixed a bug in the deleteTable function that caused the remaining tables to always have the first chair selected.