Factored out the creation of VAOs and added player input