Renamed selected to select
Refactored Draw pin method