fixing pause game issues with animations
refactoring input framework