optimize player and initial enemy