Properly implement clicks and rightclicks, more work on the level editor

Placing and then reselecting objects works. Yay!