Court orders GPS for boy arrested with gun