basically works now (still kinda bad tho) click flag twice
press d to close door 1.1 Update- Graphical update and added feature that makes you unable to close the door when you don't have any energy left 100% by me Thanks to scott cawthon for inspiration