Added functionality for attacking
Controller now correctly sets variables if buttons are released