added info on order of operations
fixed end-of-game bug and directory structure
made to work with directory structure
cleaned up code using clamp method
added global variables for window and battlefield, should create a new class of GUI objects