The youngster will remain locked up until he is sentenced