Renamed the peek function and added a peek for the tail of the queue