added functions to build enemy queue