Stuck on deletion method java