Refactor MarioLib.java; moving logic up to NonStaticEntity and StaticEntity.