The poopdeck refers to the top portion of the rear of the ship, typically where the Captain had the big wheel.