tried to improve things a little and made it so you dont completely lose the cube when it dies but this solution will need to be changed